import Layout from '../components/Layout'

let routes =[
    {
        path:'/',
        component:Layout,
        redirect:{path:'/dashboard'},
        meta:{
            title:'用户的家',
        },
        children:[
            {
                path:'dashboard',
                component:()=>import('../views/dashboard'),
                meta:{
                    title:'仪表盘',
                }
            },
            {
                path:'home',
                component:()=>import('../components/Home'),
                meta:{
                    title:'耀杨的家',
                }
            },
            {
                path:'user',
                component:()=>import('../components/Users'),
                meta:{
                    title:'灿彬的家',
                }
            }
        ]
    },
    {
        path:'/system',
        component:Layout,
        name:'system',
        meta:{
            title:'用户的家具',
        },
        children:[
            {
                path:'bad',
                name:'bad',
                component:()=>import('../components/Bed'),
                meta:{
                    title:'用户的床',
                },
                children:[
                    {
                        path:'desk',
                        component:()=>import('../components/Desk'),
                        meta:{
                            title:'用户的桌子',
                        }
                    },
                    {
                        path:'Tv',
                        component:()=>import('../components/Tv'),
                        meta:{
                            title:'用户的电视',
                        }
                    },
                ],

            },
            {
                path:'wife',
                component:()=>import('../components/Wife'),
                meta:{
                    title:'用户的妻子',
                }
            },
            {
                path:'parents',
                component:()=>import('../components/Parents'),
                meta:{
                    title:'用户的父母',
                }
            },
            {
                path:'users',
                component:()=>import('../views/users'),
                meta:{
                    title:'用户的信息',
                }
            },
            
        ]
    },
    
    {
        path:'/login',
        component:()=>import('../views/login.vue'),
        meta:{
            title:'登录',
            name:'login',
            //隐藏
            hidden:true,
        }
    }
    
]

export default routes